//0.导入vue-router
import { createRouter, createWebHashHistory } from "vue-router"

//1.导入实际页面
import Home from "../views/Home.vue"

//2.定义配置路由
const routes = [
    { path: "/", component: Home }
]
//3.创建路由示例
const router = createRouter({
    history: createWebHashHistory(),
    routes,
})

//4.导出
export default router